package gwc.domain

class UserTests extends GroovyTestCase {
	void testCreate() {
		def username = 'trung'
		assert !User.get(username)

		def user = new User(name : username, password : 'trung')
		user.save()

		assert User.get(username)
	}

	void tearDown() {
		User.users.clear()
	}
}